package com.example.backupgeo.mapper;

import com.example.backupgeo.entity.Teacher;
import com.example.backupgeo.generator.GeneratorDao;
import com.example.backupgeo.vo.UserVO;

import java.util.List;

public interface TeacherMapper extends GeneratorDao<Teacher> {
    /**
     * 查询所有用教师
     */
    List<Teacher> findAll();

    /**
     * 通过id查询教师
     */
    Teacher queryTeacherInfoById(String id);

    /**
     * 添加教师
     */
    int insertTeacher(Teacher teacher);
    /**
     * 根据姓名查询教师
     */
    Teacher queryTeacherByName(String name);

    /**
     * 更新教师信息
     */
    int update(Teacher teacher);

    /**
     * 注销教师信息
     */
    int deleteTeacher(Integer id);
}
